package com.zbkj.service.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zbkj.common.model.member.PaidMemberCardApply;
import com.zbkj.common.response.CardBrandForApplyResponse;
import com.zbkj.common.response.ProductActivityResponse;
import org.apache.ibatis.annotations.Param;

import java.math.BigDecimal;
import java.util.List;

/**
 * <p>
 * 付费会员卡表 Mapper 接口
 * </p>
 *
 * @author hzw
 * @since 2024-05-10
 */
public interface PaidMemberCardApplyDao extends BaseMapper<PaidMemberCardApply> {
    /**
     * 获取能被申请会员卡品牌列表
     * @param brandId
     * @param discount
     * @return
     */
    List<CardBrandForApplyResponse> getForCardBrands(@Param("brandId") Integer brandId,
                                                     @Param("cardId") Integer cardId,
                                                     @Param("discount") BigDecimal discount);
    /**
     * 获取该会员申请跨品牌列表
     * @return
     */
    List<CardBrandForApplyResponse> getApplyCardBrands(@Param("cardId") Integer cardId);
    List<ProductActivityResponse> getDiscountSearchPage(@Param("brandId") Integer brandId);
}
